<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Index extends CI_Controller {

    public function __construct(){
        parent::__construct();
    }

    public function index(){
        if( empty($this->session->user) ){
            header('Location: http://'.$_SERVER['HTTP_HOST'].'/public/index.html', TRUE);
        } else {
            header('Location: http://'.$_SERVER['HTTP_HOST'].'/public/index.html#/workBench', TRUE);
        }
    }
}
?>